import { defineStore } from 'pinia';

export const useConsoleStore = defineStore('console', {
  state: () => ({ operChange: true, oper: '', showDrawer: false, tableId: '' }),
  getters: {
    doubleCount: (state) => state.count * 2,
  },
  actions: {
    setShowDrawer(showDrawer) {
      this.showDrawer = showDrawerß
    },
  },
})